package com.atcc.demo.mapper;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.annotations.Options.FlushCachePolicy;

import com.atcc.demo.domain.UserInfo;

@Mapper
public interface UserInfoMapper {
	
	@Select("select *from userinfo where phonenumber = #{phonenumber}")
	@Results({
		@Result(column="name",property="name"),
		@Result(column="password",property="password"),
		@Result(column="phonenumber",property="phonenumber")
	})
	@Options(useCache=true,flushCache=FlushCachePolicy.FALSE)
	UserInfo getUserInfoByPhoneNumber(String phonenumber) ;


}
